import Vue from 'vue'
import Router from 'vue-router'
// import HelloWorld from '@/components/HelloWorld'
import login from '@/components/login/login'
import register from '@/components/login/register'
Vue.use(Router)

export default new Router({
  routes: [
    // {
    //   path: '/',
    //   name: 'HelloWorld',
    //   component: HelloWorld
    // },
    {
      path: '/',
      name: 'login',
      component: login
    },
    {
      path: '/login',//登录
      name: 'Login',
      component: login
    },
    {
      path: '/login/register',//注册
      name: 'Register',
      component: register
    }
  ]
})
